using UnityEngine;

namespace FutureCorePlugin
{
    public class SDKLauncher : MonoBehaviour
    {
        private GameObject sdkObj;

        private void Awake()
        {
            if (Application.platform == RuntimePlatform.Android || Application.platform == RuntimePlatform.IPhonePlayer)
            {
                DebugUtil.Log("[SDKLauncher]Init");

                sdkObj = new GameObject("SDK");
                sdkObj.transform.SetParent(gameObject.transform, false);

                if (SDKConst.IsUseBugly)
                {
                    BuglySDK.Init();
                }
                if (SDKConst.IsUseUmeng)
                {
                    UmengSDK.Init();
                }
            }
        }
    }
}